//
//  ChannelBaseModel.m
//  STL_ Animation
//
//  Created by DJtd on 16/3/30.
//  Copyright © 2016年 STL. All rights reserved.
//

#import "ChannelBaseModel.h"

@implementation ChannelBaseModel

- (instancetype)initWithDataSource:(NSDictionary *)dataSource {
    
   self = [super initWithDataSource:dataSource];
    if (self) {
        
        [self setValuesForKeysWithDictionary:dataSource];
    }
    
    return self;
}




- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
    if ([key isEqualToString:@"id"]) {
        
        self.idName = value;
    }
}




@end
